lcWndGetEntsByRect Home

Returns an array of entities which are placed inside or crossed by the specified rectangle.

 int lcWndGetEntsByRect (
   HANDLE hLcWnd,
   double Left,
   double Bottom,
   double Right,
   double Top,
   BOOL bCross,
   int nMaxEnts
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
Left Bottom Right Top
  Specify a selecting rectangle coordinates, on the view coordinate space.
In order to use currenly visible area, specify zero for all parameters.
bCross
  If TRUE, then the function will retrieve entities which are inside or crossed by the specified rectangle.
If FALSE, then the function will retrieve entities which are completely inside of the specified rectangle.
nMaxEnts
  Maximal number of entities that can be retrieved. You can specify -1 to retrieve unlimited number of entities.
In order to free the inner memory buffer set 0.

Return Value

  A number of found entities.

Remarks

  Found entities can be retrieved by the lcWndGetEntity function.

See Also

  Code sample,   lcWndGetEntsByPointlcWndGetEntByPoint2